<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<script type="text/javascript">
    /**
     * 查看分类详情
     */
    function detailInfo(id){
        $.ajax({
            type: "POST",
            dataType: "JSON",
            url: "${basePath}/back/navigation/getNavigationObject.sjson",
            data: {navigationId:id},
            success: function(result){
                var data = JSON.parse(result.data);
                /**重置详情页中所有html展示信息**/
                resetDetailTable("detailTable");
                /**设置展示信息**/
                $("#d_navigationName").html(data.navigationName);
                $("#d_navigationUrl").html(data.navigationUrl);
                $("#d_sortCode").html(data.sortCode);
                if(data.isShowOnBar==1){
                    $("#d_isShowOnBar").html("<font class='color_001'>已显示</font>");
                }else{
                    $("#d_isShowOnBar").html("<font class='color_002'>未显示</font>");
                }
                $("#d_seoTitle").html(data.seoTitle);
                $("#d_seoKeyWords").html(data.seoKeyWords);
                $("#d_seoDescrible").html(data.seoDescrible);
            }
        });
    }
</script>
<!--详情模态框（Modal） -->
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog" style="width:70%">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h5 class="modal-title" id="myModalLabel">首页导航条详情</h5>
			</div>
			<div class="modal-body">
				<table id="detailTable" align="center" class="addOrEditTable table table-bordered" style="width:100%;">
					<tr>
						<td class="toright_td" width="150px">首页导航条名称:</td>
						<td class="toleft_td" width="250px">&nbsp;&nbsp;<span id="d_navigationName"></span></td>
						<td class="toright_td" width="150px">首页导航条链接:</td>
						<td class="toleft_td" width="250px">&nbsp;&nbsp;<span id="d_navigationUrl"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">首页导航条排序号:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_sortCode"></span></td>
						<td class="toright_td" width="150px">首页导航条是否显示:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_isShowOnBar"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">首页导航条SEO标题:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_seoTitle"></span></td>
						<td class="toright_td" width="150px">首页导航条SEO关键字:</td>
						<td class="toleft_td">&nbsp;&nbsp;<span id="d_seoKeyWords"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">首页导航条SEO简介:</td>
						<td class="toleft_td" colspan="3">&nbsp;&nbsp;<span id="d_seoDescrible"></span></td>
					</tr>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>